import { createRouter, createWebHistory,RouteRecordRaw } from 'vue-router';



const routes:Array<RouteRecordRaw> =([
    {
        path:'/',
        name:'Home',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/Register',
        name:'Register',
        component:()=>import('../components/Ulogin/Register.vue')
    },
    {
        path:'/Ulogin',
        name:'Ulogin',
        component:()=>import('../components/Ulogin/Ulogin.vue')
    },
    {
        path:'/AddInvest',
        name:'AddInvest',
        component:()=>import('../components/Invest/AddInvest.vue')
    },
    {
        path:'/ShowInvest',
        name:'ShowInvest',
        component:()=>import('../components/Invest/ShowInvest.vue')
    },
]) 
const Router=createRouter(
    {
        history:createWebHistory(),
        routes
    }
)
export default Router